package com.winit.schedule.core.utils;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

public class Clock {

    private Clock(){

    }

    public static long getSystemTime() {
        return System.currentTimeMillis();
    }

    public static Date getDate(long time) {
        return new Date(time);
    }

    public static Date getCurrentDate() {
        return new Date(getSystemTime());
    }

    public static TimeZone getTimeZone() {
        return Calendar.getInstance().getTimeZone();
    }
}
